<?php
// Copyright 2007 Facebook Corp.  All Rights Reserved. 
// 
// Application: goomradio
// File: 'index.php' 
//   This is a sample skeleton for your application. 
// 

require_once 'php/facebook.php';

$fb = new Facebook('89d17ca5b8d1721ba7573eedaa129f80', '10ac5be29074ce35fd111d4a779a9b08');

$user_name = $fb->require_login();

?>

<p>
    Hello, <fb:name uid='$user_name' useyou='false' />!<br />
    <fb:iframe frameborder='0' scrolling='no' smartsize='true'
    src='http://slam.goomradio.com/?partnerId=GFRiGoogleJustHit&defaultRadio=289&autoPlay=1&defaultVolume=13
    &bgColor=0xFFFFFF&bgURL=http%3A//farm4.static.flickr.com/3466/3807485197_8cb28af864_o.png'></iframe>
</p>

<?php

$fb->api_client->profile_setFBML(NULL, $user['id'], 'profile', NULL, NULL, '');
echo "<p><fb:add-section-button section='profile' /></p></fb:fbml>";
?>